home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
nz
/
nz 5
/
integral & contour.doc
< prev
next >
Wrap
Text File
|
1994-01-27
|
3KB
|
74 lines
~INTEGRAL`
This may interest some scientists or engineers who have to
do a precision evaluation of some definite integral function.
Details are best found by reading the listing and the BYTE
reference. An exponential function is included as a demo, but
there is a description of where to put your own function
(watchit!) This is in unrefined working condition.
~CONTOUR`
This is a better version of an AmigaBASIC program for contour
plotting, from BYTE, Nov 1983. It's now been made largely MENU
driven which makes things easier. The usual way of using it would
probably be to just allow the program to pick default values in
first pass, and then use menu to refine the plot how you want it.
The listing is included here as CONTOUR2, with two short files
Test, and Clim as examples. ~{included on the newsdisk -ed}`
Amongst future possibilities is an option to capture contours
in a file so they can be 3-d rotated, and a built in PRINT routine.
Contour runs as an AmigaBasic program, and is started in the standard
way for Basic programs. It then asks the name of the file you want contoured
then it plots a first try at the contour. You can then use the mouse-driven
menu to modify the plot how you want.
File: The file to be plotted can be anywhere, but if not on the same
subdirectory as CONTOUR, must have enough pathname for BASIC to
find it.
The file is ASCII, & must be formatted as follows:-
column
0 1 2 3 4 5 .....
1
2 data
row 3
4
.
.
row 0/column 0 - contain the physical values of the data in
the column/row.
eg, y0-col may contain distances in N dirn
x0-row may contain distances in E dirn
the data might be heights above datum, at those coords
The file would normally be made under ED, or fed in from a foriegn
source, or however you like.
Files to try with, called Test and Clim, are available on this disk.
Test is short and means nothing. Clim is a frequency of observation of
various observations of simultaneous vapour pressures and air temperature,
at some place. It gives a slightly lumpy topleft edge because the cell size
is a bit coarse.
Scale names are user choice - make them short because there isn't much room.
Choose x- and y- ranges as you feel. The program is supposed to be able to
cope with your choice lying outside or inside the table values in the data
file.
S2, S3 -- these symbols control the fineness of dot plotting.
- try 0.2, 0.2 as a first try, then smaller numbers later if the
result is too coarse. Plotting will then take longer.
Harry Trethowen (Nelson)